﻿<%@ Page Language="c#" CodeBehind="DisplayTacheMember.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.DocumentFlowPages.DisplayTacheMemberPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>DisplayTacheMember</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
  <script language="javascript" type="text/javascript">
  //<!--
  function ReturnBack(ReturnPage) {
    if (<%=ReturnPage%> <= 3)
      window.location.href = "ListDocument.aspx?DisplayType=" + <%=ReturnPage%>;
    else
      window.location.href = "FlowTemplate.aspx";
  }
  //-->
  </script>
</head>
<body>
  <form id="DisplayTacheMember" method="post" runat="server">
    <uds:PageTitle runat="server" Title="文档流转 -> 当前环节">
      <input class="redButtonCss optionbutton" onclick="ReturnBack()" type="button" value="返回" />
    </uds:PageTitle>
    <div>
      <table style="margin-top: 8px;" cellspacing="0" cellpadding="0" border="0">
        <tr>
          <td class="<%= DisplayType == FlowMemberDisplayType.AllMembers ? "selectedTab" : "unselectedTab" %>">
            <asp:HyperLink runat="server" ID="linkAllMember" CssClass="newbutton" Text="全体成员" />
          </td>
          <td class="<%= DisplayType == FlowMemberDisplayType.Receiver ? "selectedTab" : "unselectedTab" %>">
            <asp:HyperLink runat="server" ID="linkReceiver" CssClass="newbutton" Text="呈送人员" />
          </td>
          <td class="<%= DisplayType == FlowMemberDisplayType.Signed ? "selectedTab" : "unselectedTab" %>">
            <asp:HyperLink runat="server" ID="linkSigned" CssClass="newbutton" Text="已签人员" />
          </td>
          <td class="<%= DisplayType == FlowMemberDisplayType.Unsigned ? "selectedTab" : "unselectedTab" %>">
            <asp:HyperLink runat="server" ID="linkUnsigned" CssClass="newbutton" Text="未签人员" />
          </td>
          <td class="<%= DisplayType == FlowMemberDisplayType.Postiler ? "selectedTab" : "unselectedTab" %>">
            <asp:HyperLink runat="server" ID="linkPostiler" CssClass="newbutton" Text="已批人员" />
          </td>
        </tr>
      </table>
    </div>
    <table id="Table1" cellspacing="0" cellpadding="0" width="100%" border="0">
      <tr>
        <td>
          <uds:UDSDataGrid ID="dbStaffList" runat="server" DataKeyField="ID" OnPageIndexChanged="DataGrid_PageChanged">
            <Columns>
              <asp:TemplateColumn HeaderText="ID">
                <HeaderStyle HorizontalAlign="Center" Width="5%" />
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                  <asp:CheckBox ID="Staff_ID" runat="server" />
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="真实姓名">
                <HeaderStyle HorizontalAlign="Left" Width="20%" />
                <ItemStyle HorizontalAlign="Left" />
                <ItemTemplate>
                  <%--<a href='../Mail/Compose.aspx?Action=3&amp;ClassID=0&amp;&amp;UserName=<%# DataBinder.Eval(Container, "DataItem.Staff_Name") %>&amp;Name=<%# DataBinder.Eval(Container, "DataItem.RealName") %>' title='发送内部邮件'><%# DataBinder.Eval(Container, "DataItem.RealName") %> </a>--%>
                  <%# HttpUtility.HtmlEncode(((StaffInfo)Container.DataItem).RealName) %>
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="性别">
                <HeaderStyle HorizontalAlign="Center" Width="10%" />
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                  <%# ((StaffInfo)Container.DataItem).SexStr %>
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="EMAIL">
                <HeaderStyle HorizontalAlign="Left" Width="40%" />
                <ItemStyle HorizontalAlign="Left" />
                <ItemTemplate>
                  <a href="mailto:<%# ((StaffInfo)Container.DataItem).Email %>" title='发送外部邮件'><%# ((StaffInfo)Container.DataItem).Email %></a>
                </ItemTemplate>
                <EditItemTemplate>
                  <asp:TextBox ID="TextBox1" runat="server" Text="<%# ((StaffInfo)Container.DataItem).Email %>">
                  </asp:TextBox>
                </EditItemTemplate>
              </asp:TemplateColumn>
              <asp:BoundColumn DataField="PositionName" HeaderText="职位">
                <HeaderStyle HorizontalAlign="Center" Width="25%" />
                <ItemStyle HorizontalAlign="Center" />
              </asp:BoundColumn>
            </Columns>
          </uds:UDSDataGrid>
        </td>
      </tr>
    </table>
  </form>
</body>
</html>
